﻿using Network.UpdateData;
using System.Net.Sockets;

namespace SFJDService.SocketHandle
{
    /// <summary>
    /// 接收到本地客户端发来的消息，修改指定user
    /// </summary>
    class PH04Request2EditUser : PacketHandle
    {
        public PH04Request2EditUser(Socket socket, Packet packet) : base(socket, packet) { }

        protected override void Handle()
        {
            if (Runtime.thisUser.IsAdmin)
            {
                if(Message != null && Message != "")
                {
                    Launcher.SendMsg2All(typeof(PH04EditUser).GetDictianaryKey(), Message);
                }
            }
        }
    }
}
